<?php
/**
 * @author FeoniX
 * @version v1.0
 */
header("Content-type: text/html; charset=utf-8");
// EasyPHP 入口文件
// 检测PHP环境
if(version_compare(PHP_VERSION,'5.3.0','<'))  die('require PHP > 5.3.0 !');

const EASY_VERSION = 'Version 1.0.1';
const EXT = '.class.php';
defined('EASY_PATH')  or define('EASY_PATH', dirname(__FILE__).'/');
defined('APP_PATH') 	or define('APP_PATH', dirname($_SERVER['SCRIPT_FILENAME']).'/');
defined('APP_DEBUG') 	or define('APP_DEBUG',false); // 是否调试模式
defined('COMMON_PATH') 	or define('COMMON_PATH', EASY_PATH . 'Lib/Common/');

require_once( APP_PATH . 'Conf/config.php' );
require_once( EASY_PATH . 'Global.php' );
require_once( EASY_PATH . 'Lib/Router'.EXT );
require_once( EASY_PATH . 'Lib/Controller'.EXT );
require_once( EASY_PATH . 'Lib/Model'.EXT );
require_once( EASY_PATH . 'Lib/View'.EXT );
require_once( COMMON_PATH . 'functions.php');
if(file_exists( APP_PATH . 'Common/functions.php' )){
	require_once( APP_PATH . 'Common/functions.php' );
}
$control = new Router();
$control->run();
?>